<template>
  <div class="block" style="margin-top:10px">
    <el-pagination @size-change="handleSizeChange"
     @current-change="handleCurrentChange" 
     :current-page="currentPage"
      :page-sizes="[8, 16, 32]" 
      :page-size="pageSize" 
      layout="total, sizes, prev, pager, next, jumper"
       :total="total">
    </el-pagination>
  </div>

</template>

<script>
export default {
  props:['currentPage','pageSize','total'],
  methods: {
    handleSizeChange(val) {
      this.$emit('sizeChange',val);
    },
    handleCurrentChange(val) {
      this.$emit('currentChange',val);
    }
  },
  data() {
    return {
     
    };
  }
}
</script>

<style>
</style>